/**
 * 描述：生命周期模型管理
 * 作者：chenhui
 * 日期：6/21/2019
 * 版本：0.0.1
 **/

(function(E, KIT, RES) {
  var _buildTitle = function(title) {
    return E.view({cssClass: "r-p-l r-p-tb-sm r-bold r-bg-0-2 " + KIT.BD_COLOR}, title);
  };

  rapid.Page.create("Lifecycle", {
    render: {
      titleBar: "生命周期模型管理",
      other: E.block(
        E.window("wndMenu",
          E.dataview("frmMenu")
        )
      ),
      main: E.flex({cssClass: "r-full-h r-border-box r-p"},
        E.view({cssClass: "r-full-h r-m-r-sm", cssStyle: "width:22.5em"},
          E.flexv({cssClass: "r-full-h"},
            _buildTitle("生命周期名称").addClass("r-bd-trl"),
            E.flexitem({cssClass: "r-overflow-hide"},
              E.grid("lstForm")
            )
          )
        ),
        E.flexitem({cssClass: "r-overflow-hide"},
          E.flexv({cssClass: "r-full-h"},
            _buildTitle("生命周期节点").addClass("r-bd-trl"),
            E.flexitem({cssClass: "r-overflow-hide"},
              E.grid("grd")
            ),
            _buildTitle("生命周期节点附件").addClass("r-bd-rl"),
            E.flexitem({cssClass: "r-overflow-hide"},
              E.grid("grds")
            )
          )
        )
      )
    }
  });

})(rapid.html.Element, rapid.kit, rapid.res);